package com.example.design.personal.decorator;

public class Decorator implements ISource{

    private ISource iSource;

    public Decorator(ISource iSource) {
        this.iSource = iSource;
    }

    @Override
    public void action() {
        System.out.println("=======执行前=======");
        iSource.action();
        System.out.println("=======执行后=======");
    }
}
